package tutorial.io;

import java.io.Console;
import java.io.IOException;
import java.io.Reader;

public class IOPractice {

    public static void main(String[] args) throws IOException {
//        InputStreamReader reader = new InputStreamReader(System.in);
//        char[] buffer = new char[2];
//        int readIn = reader.read(buffer);
//        System.out.println(buffer);
        
        Console console = System.console();
        if (console != null) {
            Reader reader = console.reader();
            System.out.println(console.readLine());
        } else {
            System.out.println("Cannot support console");
        }
        
    }
}
